import { axios } from '../../src/utils/request'
const getCode = (sid) => {
  return axios.get('/public/getCaptcha', {
    params: {
      sid: sid
    }
  })
}
const forget = (option) => {
  return axios.post('/login/forget', {
    ...option
  })
}
const login = (logininfo) => {
  return axios.post('/login/login', {
    ...logininfo
  })
}
const reg = (reginfo) => {
  return axios.post('/login/reg', {
    ...reginfo
  })
}
const resetInfo = (reginfo) => {
  return axios.post('/login/reset', {
    ...reginfo
  })
}
const wxLogin = (data) => {
  return axios.post('/login/wxLogin', {
    ...data
  })
}
export { getCode, forget, login, reg, resetInfo, wxLogin }
